<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title> 编辑文章 </title>
    <jsp:include page="commons/static.jsp" />
    <link type="text/css" rel="stylesheet" href="/static/css/articleForm.css" >
</head>
<body>
<jsp:include page="commons/header.jsp" />

<form class="articleForm" action="/blog/article/form" method="post">
    <h4> 编辑文章 </h4>
    <div>
        <label for=""> 标题 </label>
        <input type="hidden" name="id" value="${a.id}" >
        <input type="text" name="title" value="${a.title}" >
    </div>

    <div>
        <label for=""> 摘要 </label>
        <textarea name="summary">${a.summary}</textarea>
    </div>

    <div>
        <label for=""> 内容 </label>
        <textarea id="content" class="content" name="content">${a.content}</textarea>
    </div>

    <div class="actions">
        <button>保存文章</button>
    </div>

</form>
</body>
<script src="/static/lib/ueditor/ueditor.config.js"></script>
<script src="/static/lib/ueditor/ueditor.all.min.js"></script>
<script>
    var ue = UE.getEditor('content');
</script>
</html>